const mongoose = require('mongoose');
var mongoosepaginate = require('mongoose-paginate');
var UserSchema = new mongoose.Schema({
    name: String,
    age: Number,
    mail: String,
    city: String,
    gender: String,
    interest: [],
    date: { type: Date },
    desc: String,
    password: String,
    cateId: mongoose.Schema.ObjectId
})
UserSchema.plugin(mongoosepaginate);
module.exports = mongoose.model('User', UserSchema);